package com.zzyang.rule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * TODO
 *
 * @author zhuoziyang
 * @date 2020/10/25 16:49
 */
@Configuration
public class MyLoadBalanceRule {

    @Bean
    public IRule iRule() {
        return new RandomRule();
    }

}
